package com.homestead.controller.ao;

import cn.hutool.core.bean.BeanUtil;
import com.homestead.bo.AddOrgAuthBo;
import com.homestead.convert.AbstractConverter;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * @author HanBin_Yang
 * @since 2021/4/10 18:43
 */
@ApiModel(value = "添加组织权限-入参")
@Data
public class AddOrgAuthAo extends AbstractConverter<AddOrgAuthBo> {
    @ApiModelProperty(value = "组织编码", required = true, example = "恒大集团")
    private String orgCode;
    @ApiModelProperty(value = "组织级别 0平台 1集团 2地址公司 3楼盘", example = "1")
    private Integer orgLevel;

    @Override
    public AddOrgAuthBo convert() {
        AddOrgAuthBo bo = new AddOrgAuthBo();
        BeanUtil.copyProperties(this, bo);
        return bo;
    }
}
